---
title: OlkTextBox.MaxLength Property (Outlook)
keywords: vbaol11.chm1000050
f1_keywords:
- vbaol11.chm1000050
ms.prod: outlook
api_name:
- Outlook.OlkTextBox.MaxLength
ms.assetid: 7e7621e9-817a-ac05-a4de-e86656a021b1
ms.date: 06/08/2017
---


# OlkTextBox.MaxLength Property (Outlook)

Returns or sets a  **Long** that specifies the maximum number of characters for the **[Value](olktextbox-value-property-outlook.md)** of this control. Read/write.


## Syntax

 _expression_ . **MaxLength**

 _expression_ A variable that represents an **OlkTextBox** object.


## Remarks

The default value is zero, which only means that no maximum length for the value has been defined for this control. A maximum length may still be in place based on available memory or other factors.


## See also


#### Concepts


[OlkTextBox Object](olktextbox-object-outlook.md)

